<include file="Public:header"/>
<div id="main-content">
	<div id="top-alert" class="fixed alert alert-error" style="display: none;">
		<button class="close fixed" style="margin-top: 4px;">&times;</button>
		<div class="alert-content">警告内容</div>
	</div>
	<div id="main" class="main">
		<div class="main-title-h">
			<span class="h1-title">C2C配置</span>
		</div>
		<div class="tab-wrap">
			<div class="tab-content">
				<form id="form" action="{:U('Exchange/configedit')}" method="post" class="form-horizontal" enctype="multipart/form-data">
					<div id="tab" class="tab-pane in tab">
						<div class="form-item cf">
							<table>
								<table>
									<tr class="controls">
										<td class="item-label">客服联系方式 :</td>
										<td>
											<input type="text" class="form-control input-10x" name="contact" value="{$data['contact']}">
										</td>
										<td class="item-note"></td>
									</tr>
									
									<tr class="controls" style="border-top:1px solid #d0d0d0;">
										<td class="item-label">充值状态 :</td>
										<td>
											<select name="mycz_status" class="form-control input-10x">
												<option value="1" <eq name="data['mycz_status']" value="1">selected</eq> >开放</option>
												<option value="0" <eq name="data['mycz_status']" value="0">selected</eq> >停止</option>
											</select>
										</td>
										<td class="item-note"></td>
									</tr>
									<tr class="controls">
										<td class="item-label">充值单价比例 :</td>
										<td>
											<input type="text" class="form-control input-10x" name="mycz_uprice" value="{$data['mycz_uprice']}">
										</td>
										<td class="item-note">设置比例如：1=X</td>
									</tr>
									<tr class="controls">
										<td class="item-label">最小充值金额 :</td>
										<td>
											<input type="text" class="form-control input-10x" name="mycz_min" value="{$data['mycz_min']}">
										</td>
										<td class="item-note"></td>
									</tr>
									<tr class="controls">
										<td class="item-label">最大充值金额 :</td>
										<td>
											<input type="text" class="form-control input-10x" name="mycz_max" value="{$data['mycz_max']}">
										</td>
										<td class="item-note"></td>
									</tr>
									<tr class="controls">
										<td class="item-label">充值赠送开启 :</td>
										<td>
											<select class="form-control input-10x" name="give_type">
												<option value="0" <eq name="data['give_type']" value="0">selected</eq>>关闭充值奖励</option>
												<option value="1" <eq name="data['give_type']" value="1">selected</eq>>开启首次充值奖励</option>
												<option value="2" <eq name="data['give_type']" value="2">selected</eq>>开启每次充值奖励</option>
											</select>
										</td>
										<td class="item-note"></td>
									</tr>
									<tr class="controls">
										<td class="item-label">奖励发放模式 :</td>
										<td>
											<select class="form-control input-10x" name="grant_type">
												<option value="0" <eq name="data['grant_type']" value="0">selected</eq>>直接发放奖励</option>
												<option value="1" <eq name="data['grant_type']" value="1">selected</eq>>锁定发放奖励</option>
											</select>
										</td>
										<td class="item-note">如开启“锁定发放奖励”将会根据规则进行发放。（在PHP文件里面修改规则）</td>
									</tr>
									<tr class="controls">
										<td class="item-label">充值赠送币种 :</td>
										<td>
											<select class="form-control input-10x" name="xnb_mr_song">
												<volist name="C['xnb_list']" id="vo">
													<option value="{$vo['name']}" <eq name="vo['name']" value="$data['xnb_mr_song']">selected</eq>> {$vo['title']}
													</option>
												</volist>
											</select>
										</td>
										<td class="item-note"></td>
									</tr>
									<tr class="controls">
										<td class="item-label">充值赠送比例 :</td>
										<td>
											<input type="text" class="form-control input-10x" name="xnb_mr_song_num" value="{$data['xnb_mr_song_num']}">
										</td>
										<td class="item-note">%根据充值总额计算</td>
									</tr>
									
									<tr class="controls">
										<td class="item-label">▶ 一代赠送比例 :</td>
										<td>
											<input type="text" class="form-control input-10x" name="song_num_1" value="{$data['song_num_1']}">
										</td>
										<td class="item-note">%根据下级每次发放数量计算</td>
									</tr>
									<tr class="controls">
										<td class="item-label">▶ 二代赠送比例 :</td>
										<td>
											<input type="text" class="form-control input-10x" name="song_num_2" value="{$data['song_num_2']}">
										</td>
										<td class="item-note">%根据下级每次发放数量计算</td>
									</tr>
									<tr class="controls">
										<td class="item-label">▶ 三代赠送比例 :</td>
										<td>
											<input type="text" class="form-control input-10x" name="song_num_3" value="{$data['song_num_3']}">
										</td>
										<td class="item-note">%根据下级每次发放数量计算</td>
									</tr>
									
									<tr class="controls">
										<td class="item-label">充值起步条件 :</td>
										<td>
											<input type="text" class="form-control input-10x" name="xnb_mr_song_tiaojian" value="{$data['xnb_mr_song_tiaojian']}">
										</td>
										<td class="item-note">如：满1000元触发奖励开启</td>
									</tr>
									<tr class="controls">
										<td class="item-label">充值提示 :</td>
										<td style="padding-bottom:10px;">
											<textarea name="mycz_prompt" id="mycz_prompt" class="form-control input-10x">{$data['mycz_prompt']}</textarea>
										</td>
										<td class="item-note"></td>
									</tr>


									<tr class="controls" style="border-top:1px solid #d0d0d0;">
										<td class="item-label">提现状态 :</td>
										<td>
											<select name="mytx_status" class="form-control input-10x">
												<option value="1" <eq name="data['mytx_status']" value="1">selected</eq> >开放</option>
												<option value="0" <eq name="data['mytx_status']" value="0">selected</eq> >停止</option>
											</select>
										</td>
										<td class="item-note"></td>
									</tr>
									<tr class="controls">
										<td class="item-label">提现单价比例 :</td>
										<td>
											<input type="text" class="form-control input-10x" name="mytx_uprice" value="{$data['mytx_uprice']}">
										</td>
										<td class="item-note">设置比例如：1=X</td>
									</tr>
									<tr class="controls">
										<td class="item-label">最小提现金额 :</td>
										<td>
											<input type="text" class="form-control input-10x" name="mytx_min" value="{$data['mytx_min']}">
										</td>
										<td class="item-note"></td>
									</tr>
									<tr class="controls">
										<td class="item-label">最大提现金额 :</td>
										<td>
											<input type="text" class="form-control input-10x" name="mytx_max" value="{$data['mytx_max']}">
										</td>
										<td class="item-note"></td>
									</tr>
									
									<tr class="controls">
										<td class="item-label">提现整倍数 :</td>
										<td>
											<input type="text" class="form-control input-10x" name="mytx_bei" value="{$data['mytx_bei']}">
										</td>
										<td class="item-note"></td>
									</tr>
									<tr class="controls">
										<td class="item-label">提现手续费 :</td>
										<td>
											<input type="text" class="form-control input-10x" name="mytx_fee" value="{$data['mytx_fee']}">
										</td>
										<td class="item-note"></td>
									</tr>
									
									<tr class="controls">
										<td class="item-label">提现提示 :</td>
										<td style="padding-bottom:10px;">
											<textarea name="mytx_prompt" id="mytx_prompt" class="form-control input-10x">{$data.['mytx_prompt']}</textarea>
										</td>
										<td class="item-note"></td>
									</tr>
									
									<tr class="controls">
										<td class="item-label"></td>
										<td>
											<div class="form-item cf">
												<button class="btn submit-btn ajax-post" target-form="form-horizontal" id="submit" type="submit">提交</button>
												<a class="btn btn-return" href="{$Think.server.HTTP_REFERER}">返 回</a>
											</div>
										</td>
									</tr>
								</table>
							</table>
						</div>
					</div>
				</form>
				<script type="text/javascript">
					//提交表单
					$('#submit').click(function () {
						$('#form').submit();
					});
				</script>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript" charset="utf-8">
	$('title').html('C2C配置-'+'__WEBTITLE__');
</script>
<include file="Public:footer"/>